import Layout from '@/views/layout/Layout'

const ROLES = ['admin', 'hr', 'manage']

const batch = {
  path: '/batch',
  component: Layout,
  name: 'batch',
  meta: {
    title: '面试批次管理',
    icon: 'tree-table',
    nocache: true,
    roles: ROLES
  },
  children: [
    {
      path: 'first',
      component: () => import('@/views/batch/first'),
      name: 'first-batch',
      meta: { title: '一面批次', icon: 'list', noCache: true, roles: ROLES }
    },
    {
      path: 'first-list',
      component: () => import('@/views/batch/first-list'),
      name: 'first-batch-list',
      hidden: true,
      meta: { title: '面试批次人员名单', icon: 'list', noCache: true, roles: ROLES }
    },
    {
      path: 'second',
      component: () => import('@/views/batch/second'),
      name: 'second-batch',
      meta: { title: '二面批次', icon: 'list', noCache: true, roles: ROLES }
    },
    {
      path: 'second-list',
      component: () => import('@/views/batch/second-list'),
      name: 'second-batch-list',
      hidden: true,
      meta: { title: '面试批次人员名单', icon: 'list', noCache: true, roles: ROLES }
    },
    {
      path: 'hr',
      component: () => import('@/views/batch/hr'),
      name: 'hr-batch',
      meta: { title: 'HR终面批次', icon: 'list', noCache: true, roles: ROLES }
    },
    {
      path: 'hr-list',
      component: () => import('@/views/batch/hr-list'),
      name: 'hr-batch-list',
      hidden: true,
      meta: { title: '面试批次人员名单', icon: 'list', noCache: true, roles: ROLES }
    }
  ]
}

export default batch
